# Copyright (c) 2019, 2025 Oracle and/or its affiliates. All rights reserved. This
# code is released under a tri EPL/GPL/LGPL license. You can use it,
# redistribute it and/or modify it under the terms of the:
#
# Eclipse Public License version 2.0, or
# GNU General Public License version 2, or
# GNU Lesser General Public License version 2.1.

require_relative '../../ruby/spec_helper'

describe "Kernel#require" do
  it "does not warn for require 'rbconfig'" do
    out = ruby_exe("require 'rbconfig'; p RbConfig", options: "-w", args: "2>&1")
    out.should == "RbConfig\n"
  end
end
